package com.yueyi.yygh.hosp.repository;

import com.yueyi.yygh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zyy
 * @create 2022-01-30 15:38
 */
@Repository
public interface Hospitalrepository extends MongoRepository<Hospital,String> {
    //判断是否存在
    Hospital getHospitalByHoscode(String hoscode);

    List<Hospital> findHospitalByHosnameLike(String hosname);
}
